/**
 * 
 */
package com.dream.house.dao.base;

import java.util.Map;

import cn.com.servyou.base.exception.DAOException;
import cn.com.servyou.utils.Page;

/**
 * @author ahk
 * @since 1.0
 */
public interface IDAO {
	
	/**
	 * 审批
	 * @param id
	 * @param status
	 * @param checkUser
	 * @param s 当前状态
	 * @return boolean
	 * @throws DAOException
	 */
	boolean grant(String id,String status,String checkUser,String s) throws DAOException;
	
	/**
	 * 删除房关联信息
	 * @param room_id
	 * @return boolean
	 * @throws DAOException
	 */
	public boolean removeByRoom(String room_id) throws DAOException;
	
	/**
	 * 重复性检查
	 * @param condition-条件
	 * @return
	 * @throws DAOException
	 */
	boolean check(Map<String,String> condition) throws DAOException;
	
	String getMaxId() throws DAOException;
	
	/**
	 * 分页查询
	 * @param Map<String, Object>
	 * @param pageNo
	 * @param pageSize
	 * @return
	 * @throws DAOException
	 */
	public Page findByPage(Map<String, Object> condition, int pageNo,
			int pageSize) throws DAOException;
}
